Skip to content

查询订单

请求参数类型描述
device_idstring小票机设备号
print_order_nostring打印单号
php
$instance->v3->payDevices->printers->_device_id_->printOrders->_print_order_no_->getAsync([
  'device_id' => 'WINCIE*EIXHRB',
  'print_order_no' => 'wx8888888888888888',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}')->getAsync([
  'device_id' => 'WINCIE*EIXHRB',
  'print_order_no' => 'wx8888888888888888',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}']->getAsync([
  'device_id' => 'WINCIE*EIXHRB',
  'print_order_no' => 'wx8888888888888888',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payDevices->printers->_device_id_->printOrders->_print_order_no_->get([
  'device_id' => 'WINCIE*EIXHRB',
  'print_order_no' => 'wx8888888888888888',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}')->get([
  'device_id' => 'WINCIE*EIXHRB',
  'print_order_no' => 'wx8888888888888888',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/pay-devices/printers/{device_id}/print-orders/{print_order_no}']->get([
  'device_id' => 'WINCIE*EIXHRB',
  'print_order_no' => 'wx8888888888888888',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
print_order_nostring打印单号
template_idstring模板ID
notify_urlstring回调通知地址
print_statestring打印状态
PRINT_STATE_WAIT | PRINT_STATE_SUCCESS | PRINT_STATE_FAIL | PRINT_STATE_CACHED 枚举值之一
print_state_descriptionstring打印状态描述
variable_listobject[]变量列表
keystring
valuestring
table_listobject[]表格变量列表
keystring
row_listobject[]
cell_liststring[]

参阅 情

Published on the GitHub by TheNorthMemory